﻿using ModbusLib;
using System.Linq;

namespace ModbusRtuTest
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            ModbusRtu modbusRtu = new ModbusRtu();
            modbusRtu.Connect("COM11");
            var result = modbusRtu.ReadInputRegs(1, 0, 3);
            var res = result.Take(2);
        }
    }
}